<ion-list class="app-list-menu">
    <ng-container *ngFor="let item of items">
        <ng-container *ngIf="item.text !== ''; else split;">
            <ion-item href="javascript:;" lines="full" (click)="onClick(item)">
                <ion-avatar slot="start">
                    <app-icon [item]="item" [isDefault]="true"></app-icon>
                </ion-avatar>
                <ion-label [ngClass]="item.textcls">
                    {{ item.text }}
                </ion-label>
            </ion-item>
        </ng-container>
        <ng-template #split>
            <app-dividing-line></app-dividing-line>
        </ng-template>
    </ng-container>
    <ion-item *ngIf="isCustom" lines="full" (click)="editMenus()">
        <ion-avatar slot="start">
            <ion-icon name="add" style="width: 100%;height: 100%;"></ion-icon>
        </ion-avatar>
        <ion-label>
            添加功能
        </ion-label>
    </ion-item>
</ion-list>